from django.contrib import admin

# Register your models here.
from KeHu.models import KeHu, KeHuzilao,KeHugenjinlog


@admin.register(KeHu)
class KehuAdmin(admin.ModelAdmin):
    list_display = ('username', 'tel')
    list_filter = ('username', 'tel')
    search_fields = ('username', 'tel')
    ordering = ('tel',)


@admin.register(KeHuzilao)
class KeHuzilaoAdmin(admin.ModelAdmin):
    list_display = ('kehu', 'hujileixing')
    list_filter = ('kehu', 'hujileixing')
    search_fields = ('kehu', 'hujileixing')
    ordering = ('kehu',)

@admin.register(KeHugenjinlog)
class KeHugenjinlogAdmin(admin.ModelAdmin):
    list_display = ('genjinleixing','genjintext')
    list_filter = ('kehu', 'genjinleixing')
    search_fields = ('kehu', 'genjinleixing')
    ordering = ('kehu',)


